package com.chixing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author smith
 * @since 2025-05-21
 */
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠券id-主键
     */
    @TableId(value = "coupon_id", type = IdType.AUTO)
    private Integer couponId;

    /**
     * 优惠券名称
     */
    private String couponName;

    /**
     * 优惠券类型
     */
    private String couponType;

    /**
     * 优惠的价格
     */
    private Float couponPrice;

    /**
     * 优惠券开始时间
     */
    private LocalDateTime couponStartTime;

    /**
     * 优惠券结束时间
     */
    private LocalDateTime couponEndTime;

    /**
     * 优惠券有效天数
     */
    private Integer couponValidDays;

    /**
     * 优惠券状态 0: 有效 1：已无效
     */
    private Integer status;

    private String other1;

    private String other2;

    /**
     * 优惠券创建时间
     */
    private LocalDateTime createTime;

    /**
     * 优惠券修改时间
     */
    private LocalDateTime updateTime;

    private Integer version;

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }
    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }
    public String getCouponType() {
        return couponType;
    }

    public void setCouponType(String couponType) {
        this.couponType = couponType;
    }
    public Float getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(Float couponPrice) {
        this.couponPrice = couponPrice;
    }
    public LocalDateTime getCouponStartTime() {
        return couponStartTime;
    }

    public void setCouponStartTime(LocalDateTime couponStartTime) {
        this.couponStartTime = couponStartTime;
    }
    public LocalDateTime getCouponEndTime() {
        return couponEndTime;
    }

    public void setCouponEndTime(LocalDateTime couponEndTime) {
        this.couponEndTime = couponEndTime;
    }
    public Integer getCouponValidDays() {
        return couponValidDays;
    }

    public void setCouponValidDays(Integer couponValidDays) {
        this.couponValidDays = couponValidDays;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getOther1() {
        return other1;
    }

    public void setOther1(String other1) {
        this.other1 = other1;
    }
    public String getOther2() {
        return other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Coupon{" +
            "couponId=" + couponId +
            ", couponName=" + couponName +
            ", couponType=" + couponType +
            ", couponPrice=" + couponPrice +
            ", couponStartTime=" + couponStartTime +
            ", couponEndTime=" + couponEndTime +
            ", couponValidDays=" + couponValidDays +
            ", status=" + status +
            ", other1=" + other1 +
            ", other2=" + other2 +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", version=" + version +
        "}";
    }
}
